/*
 * Copyright 2023-2024 Ou Jianbo (59935554@qq.com)
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

#ifndef _LD_TEMPLATE_H_
#define _LD_TEMPLATE_H_

#ifdef __cplusplus
extern "C" {
#endif

#include "ldCommon.h"

typedef struct {
    LD_COMMON_ATTRIBUTES;
    // add other variable
}ldTemplate_t;

ldTemplate_t* ldTemplateInit(arm_2d_scene_t *pScene,uint16_t nameId, uint16_t parentNameId, int16_t x,int16_t y,int16_t width,int16_t height);
void ldTemplateLoop(arm_2d_scene_t *pScene,ldTemplate_t *pWidget,const arm_2d_tile_t *pParentTile,bool bIsNewFrame);
void ldTemplateDel(ldTemplate_t *pWidget);



#define ldTemplateSetHidden          ldBaseSetHidden
#define ldTemplateMove               ldBaseMove

#ifdef __cplusplus
}
#endif

#endif //_LD_TEMPLATE_H_
